<template>
	<view class="assets">
		<view class="assets-title">
			<view class="assets-title-left">
				<text>我的资产</text>
				<image class="assets-title-left-image" src="../../../static/mine/eye.png" mode=""></image>
			</view>
			<view class="assets-title-right">
				<text>账户保障可升级 ></text>
			</view>
		</view>
		<view class="assets-money">
			<view class="assets-money-left" @tap="navigatorData" v-if="userInfo">
				<text>总资产</text>
				<text>{{userInfo.balance}}</text>
				<text>昨日收益 0.00</text> 
			</view> 
			<!--  -->
			<view class="assets-money-left" @tap="navigatorData">
				<text>总资产</text>
				<text>0.00</text>
				<text>昨日收益 0.00</text> 
			</view>
			<!--  -->
			<view class="assets-money-middle">
				<view></view>
			</view>
			<view class="assets-money-right">
				<text>总待还</text>
				<text>0.00</text>
				<text>暂无待还款项</text>
			</view>
			
		</view>
		<view class="assets-borrowmoney">
			<view class="">
				<view class="assets-borrowmoney-name">
					<text>白条额度</text>
				</view>
				<view class="assets-borrowmoney-val">
					<text>充话费减20</text>
				</view>
			</view>
			<view class="">
				<view class="assets-borrowmoney-name">
					<text>可借现金</text>
				</view>
				<view class="assets-borrowmoney-val">
					<text>最高20万</text>
				</view>
			</view>
			<view class="">
				<view class="assets-borrowmoney-name">
					<text>我的保险</text>
				</view>
				<view class="assets-borrowmoney-val">
					<text>0项</text>
				</view>
			</view>
			<view class="">
				<view class="assets-borrowmoney-name">
					<text>我的账单</text>
				</view>
				<view class="assets-borrowmoney-val">
					<text>暂无交易</text>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				userInfo:null, //用户信息
			}
		},
		created(){
			this.userInfo=getApp().globalData.userInfo;
			// 
		},
		methods: {
			navigatorData() {
				uni.navigateTo({
					url: "/pages/MyAssets/MyAssets",
				})
			}
		}
	}
</script>
<style scoped lang="scss">
	/* // 引入局部的scss文件 */
	@import './Assets.scss'
</style>
